CREATE EXTERNAL TABLE IF NOT EXISTS spmi_ods.spmi_apack_imbalance_global_bill(
id                                                 bigint                         COMMENT '主键ID',
package_no                                         String                         COMMENT '建包的包号',
bill_generation_time                               timestamp                      COMMENT '账单产生时间',
bill_generation_date                               String                         COMMENT '账单产生日期',
fee_type_id                                        bigint                         COMMENT '账单主类型ID',
fee_type_code                                      String                         COMMENT '账单主类型编码',
create_time                                        timestamp                      COMMENT '创建时间',
update_time                                        timestamp                      COMMENT '更新时间'
)
COMMENT '账单全局索引表'
PARTITIONED BY (dt STRING COMMENT '更新/创建日期 (yyyy-MM-dd)')
STORED AS PARQUET
LOCATION '/dw/hive/spmi_ods.db/external/spmi_apack_imbalance_global_bill'
TBLPROPERTIES (
  'parquet.column.index.access'='true'
);